import fetch from "common/src/utils/fetch";

export function voluntaryHisBetweenPage(data) {
  return fetch({
    url: "/api/majorservice/voluntaryHisBetween/voluntaryHisBetweenPage",
    method: "post",
    headers: { "Content-Type": "application/json" },
    data
  });
}

export function findVoluntaryInfoClassVoById(data) {
  return fetch({
    url: "/api/majorservice/voluntaryInfoHis/findVoluntaryInfoHis",
    method: "post",
    headers: { "Content-Type": "application/json" },
    data
  });
}

export function getReportStatus(key) {
  return fetch({
    url: `/api/majorservice/common/exportExcelResult/${key}`,
    method: 'get'
  });
}

export function exportData(data) {
  return fetch({
    url: `/api/majorservice/voluntaryInfoHis/excelVoluntaryInfoClassDetail`,
    method: 'post',
    data: data,
    showMask: false
  });
}

export function excelvoluntaryHisBetweenPage(data) {
  return fetch({
    url: `/api/majorservice/voluntaryHisBetween/excelvoluntaryHisBetweenPage`,
    method: 'post',
    data: data,
    showMask: false
  });
}






